package com.exam.project.business.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.exam.framework.aspectj.lang.annotation.Excel;
import com.exam.framework.web.domain.BaseEntity;

/**
 * 选项对象 choice_option
 * 
 * @author qiuwenbing
 * @date 2025-04-03
 */
public class ChoiceOption extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 关联的题目id */
    @Excel(name = "关联的题目id")
    private Long questionId;

    /** 选项字母，如A、B、C、D */
    @Excel(name = "选项字母，如A、B、C、D")
    private String optionLetter;

    /** 选项内容 */
    @Excel(name = "选项内容")
    private String optionContent;

    /** 是否为正确选项，true表示正确，false表示错误 */
    @Excel(name = "是否为正确选项，true表示正确，false表示错误")
    private Integer isCorrect;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setQuestionId(Long questionId) 
    {
        this.questionId = questionId;
    }

    public Long getQuestionId() 
    {
        return questionId;
    }
    public void setOptionLetter(String optionLetter) 
    {
        this.optionLetter = optionLetter;
    }

    public String getOptionLetter() 
    {
        return optionLetter;
    }
    public void setOptionContent(String optionContent) 
    {
        this.optionContent = optionContent;
    }

    public String getOptionContent() 
    {
        return optionContent;
    }
    public void setIsCorrect(Integer isCorrect) 
    {
        this.isCorrect = isCorrect;
    }

    public Integer getIsCorrect() 
    {
        return isCorrect;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("questionId", getQuestionId())
            .append("optionLetter", getOptionLetter())
            .append("optionContent", getOptionContent())
            .append("isCorrect", getIsCorrect())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
